import React from "react";
import { HashRouter as Router, Route, Routes } from "react-router-dom";
import Index from "../components/movie/Index";
import HotMovieDetail from "../components/movie/HotMovieDetail";
import Comment from "../components/movie/Comment";
import TheatreDetail from "../components/movie/TheatreDetail";
export default function movie() {
  return (
    <div>
      <Routes>
        <Route path="/index" element={<Index></Index>}></Route>
        <Route
          path="/detail/:id"
          element={<HotMovieDetail></HotMovieDetail>}
        ></Route>
        <Route path="/comment" element={<Comment></Comment>}></Route>
        <Route
          path="/theatre/detail/:id"
          element={<TheatreDetail></TheatreDetail>}
        ></Route>
      </Routes>
    </div>
  );
}
